// CommodityService.java (服务接口)
package com.ywb.service;

import com.ywb.pojo.Commodity;
import com.ywb.pojo.CommodityQueryParam;
import com.ywb.pojo.PageResult;

import java.util.List;

public interface CommodityService {
    List<Commodity> findAll();

    void deleteById(Integer id);

    void add(Commodity commodity);

    Commodity getById(Integer id);

    void update(Commodity commodity);

    PageResult<Commodity> page(CommodityQueryParam commodityQueryParam);

}